package com.itheima.fanxing;

import java.util.ArrayList;

public class Demo01 {

    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add(123);//Integer
        list.add("abnc");
        list.add(true);//Boolean
        list.add('魑');//Character



        ArrayList<String> list1 = new ArrayList<>();
        list1.add("abc");
        for (int i = 0; i < list1.size(); i++) {


            String s= list1.get(i);
            System.out.println(s.length());


        }

    }
}
